<template>
	<div>
		<div id="hello">
			<h1>Hello：{{userName}}</h1>
			<p>欢迎进入我的博客后台管理！</p>
		</div>
	</div>

</template>

<script>
export default {
  data() {
    return {
      userName: ""
    };
  },
  created() {},
  mounted() {
    this.getCategory("api/getCategory");
  },
  components: {},
  computed: {},
  methods: {
    getCategory: async function(url, data) {
      let _this = this;
      await _this.http.get(url, data, _this);
      _this.userName = _this.$store.state.userInfo.user;
    }
  }
};
</script>
<style lang="less" scoped>
@import "../../public/pubilcColor.less";

#hello {
  background: @bgcolor;
  padding: 50px 50px 80px;
  border-radius: 5px;
}
h1 {
  font-size: 50px;
  font-weight: 800;
  margin-bottom: 30px;
}
p {
  font-size: 25px;
}
</style>
